package com.imooc.miaosha.common;


public interface Const {
    public interface STATUS_CODE {
        int SUCCESS_CODE = 1;
        int FAIL_CODE = 0;
    }

    public interface VALIDATOR_TYPE {
        String TELEPHONE = "TELEPHONE";
        String PASSWORD = "PASSWORD";
    }

    public interface LOGIN_COOKIE_CONFIG {
        String NAME = "LOGIN_TOKEN";
        String DOMAIN = "localhost";
    }

    public interface SECOND_KILL_STATUS {
        Integer NO_START = -1;
        Integer ACTING = 0;
        Integer FINISHED = 1;
    }

    public static final String SOLR_BASE_URL = "http://122.112.167.247:8984/solr/product";
    public static final String MIAOSHA_CLICK_COUNT_PREFIX = "MIAOSHA_CLICK_COUNT_PREFIX";
    public static final int MIAOSHA_CLICK_COUNT_TIME = 60;

    public interface ORDER_CHANNEL {
        byte PC = 0;
        byte TEL = 1;
    }

    public interface ORDER_STATUS {
        byte NO_PAY = 0; //未支付
        byte HAVE_TIMED = -10; //未支付
        byte PAYED = 1; //已支付
        byte HAVE_SENDED = 2;//已发货
        byte FINISHED = 3;//已完成
    }

    public final String MIAOSHA_INFO = "MIAOSHA_INFO";
    public final String MIAOSHA_CHECK_TOKEN = "MIAOSHA_CHECK_TOKEN";
    public final String MIAOSHA_STOCK = "MIAOSHA_STOCK";
    public final Integer MAX_SECOND_KILL_CLICK_COUNT = 10;
    public final String LOGIN_TOKEN_PREFIX = "USERLOGIN";
    public final Integer GOOD_LIST_JSON_CACHE_EXPIRE = 60;
    public final Integer GOOD_LIST_PAGE_CACHE_EXPIRE = 60;
    public final String GOOD_LIST_PAGE_CACHE_PREFIX = "PAGE_CACHE:GOODLIST";
    public final String GOOD_LIST_JSON_CACHE_PREFIX = "JSON_CACHE:GOODLIST";
    public final String TRADE_NO_PREFIX = "TRADE_NO";
    public final String USERLIST_PREFIX = "USERLIST_PREFIX";
    public final Integer MIAO_SHA_GOOD_COUNT = 1;
    public final String COUNT_PREFIX = "SCAN_COUNT";
    public final Integer CLOSE_ORDER_HOUR = -2;
    public final String RANK_SET_KEY = "searchkeyset";
    public final int UN_CREATE_RANK_SET_KEY = 0;

    public interface REDIS_1_CONFIG {
        String IP = "122.112.167.247";
        Integer PORT = 6379;
        String PASS = "690313";
    }

    public interface REDIS_2_CONFIG {
        //    String IP = "47.100.119.18";
        String IP = "47.100.119.18";
        Integer PORT = 6379;
        String PASS = "690313";
    }

    public interface RLOCK_NAME {
        public final String CLOSE_ORDER_LOCK = "CLOSE_ORDER_LOCK";
    }
}